﻿using System;
using MoonSharp.Interpreter;

// Token: 0x020002AD RID: 685
public class AIRaygunHitEvent : IEvent
{
	// Token: 0x06000F30 RID: 3888 RVA: 0x00073DEF File Offset: 0x00071FEF
	public AIRaygunHitEvent(EntityBase shooter, EntityBase target)
	{
		this.shooter = shooter;
		this.target = target;
		this.code = EventCode.OnAIRaygunHit;
	}

	// Token: 0x06000F31 RID: 3889 RVA: 0x00073E10 File Offset: 0x00072010
	public override DynValue GetLuaData()
	{
		if (this.data == null)
		{
			this.data = DynValue.NewPrimeTable();
			this.data.Table.Set("shooter", DynValue.FromObject(null, this.shooter.GetLuaEntity()));
			this.data.Table.Set("target", DynValue.FromObject(null, (!this.target) ? null : this.target.GetLuaEntity()));
		}
		return this.data;
	}

	// Token: 0x04001427 RID: 5159
	public EntityBase shooter;

	// Token: 0x04001428 RID: 5160
	public EntityBase target;
}
